﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMsaster.master" AutoEventWireup="true" CodeFile="ManagerManaged.aspx.cs" Inherits="Admin_ManagerManaged" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
       <script src="assets/js/jquery-1.10.2.js"></script>
    <!-- Bootstrap Js -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="assets/js/jquery.metisMenu.js"></script>
    <!-- DATA TABLE SCRIPTS -->
      <script src="assets/js/ManagerTables.js"></script>
    <script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
    <script src="assets/js/model.js"></script>
  
    <!-- Custom Js -->
    <script src="assets/js/custom-scripts.js"></script>
    <title>图书管理员管理</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    
    

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>" DeleteCommand="DELETE FROM [Admin_info] WHERE [AdminID] = @original_AdminID AND [AdminPassword] = @original_AdminPassword AND [AdminName] = @original_AdminName" InsertCommand="INSERT INTO [Admin_info] ([AdminID], [AdminPassword], [AdminName]) VALUES (@AdminID, @AdminPassword, @AdminName)" SelectCommand="SELECT [AdminID], [AdminPassword], [AdminName] FROM [Admin_info] ORDER BY [AdminID]" UpdateCommand="UPDATE [Admin_info] SET [AdminPassword] = @AdminPassword, [AdminName] = @AdminName WHERE [AdminID] = @original_AdminID AND [AdminPassword] = @original_AdminPassword AND [AdminName] = @original_AdminName" ConflictDetection="CompareAllValues" OldValuesParameterFormatString="original_{0}">
        <DeleteParameters>
            <asp:Parameter Name="original_AdminID" Type="String" />
            <asp:Parameter Name="original_AdminPassword" Type="String" />
            <asp:Parameter Name="original_AdminName" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="AdminID" Type="String" />
            <asp:Parameter Name="AdminPassword" Type="String" />
            <asp:Parameter Name="AdminName" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="AdminPassword" Type="String" />
            <asp:Parameter Name="AdminName" Type="String" />
            <asp:Parameter Name="original_AdminID" Type="String" />
            <asp:Parameter Name="original_AdminPassword" Type="String" />
            <asp:Parameter Name="original_AdminName" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>" SelectCommand="SELECT [PublishCompanyID], [PublishCompanyName] FROM [Publish_company]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>" SelectCommand="SELECT [BookType], [TypeName] FROM [Book_Type]"></asp:SqlDataSource>
    <div id="page-wrapper">
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="page-header">图书类别管理<small> 在这里您可以管理所有图书的类别</small>
                    </h1>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h2>*图书条目目录</h2>
                        </div>
                        <hr />

                        <div class="panel-body">
                            <div class="panel-heading">
                            </div>
                            <div class="table-responsive">
                                <!-- 数据源开始 -->

                                <asp:GridView ID="mybookdata" class="mytablestyle table table-striped table-bordered table-hover" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" DataKeyNames="AdminID">
                                    <Columns>
                                        <asp:CommandField ShowEditButton="True" />
                                        <asp:CommandField ShowDeleteButton="True" />
                                        <asp:BoundField DataField="AdminID" HeaderText="管理员ID" ReadOnly="True" SortExpression="AdminID" />
                                        <asp:BoundField DataField="AdminPassword" HeaderText="管理员密码" SortExpression="AdminPassword" />
                                        <asp:BoundField DataField="AdminName" HeaderText="管理员姓名" SortExpression="AdminName" />
                                    </Columns>
                                </asp:GridView>
                                <!-- 数据源结束 -->
                                <br />
                                <script> window.onload = function asdasd() {
     $("#ContentPlaceHolder1_mybookdata tr:first").wrap("<thead></thead>");
     $("#ContentPlaceHolder1_mybookdata thead").insertBefore("#GriView1 tbody");
     $("#ContentPlaceHolder1_mybookdata").dataTable();
 }</script>
                            </div>

                        </div>


                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>" SelectCommand="SELECT [AmerceTypeID], [AmerceName] FROM [Amerce_info]"></asp:SqlDataSource>





                        <!-- 按钮触发模态框 -->




               





               














                        <!--End Advanced Tables -->
                    </div>

                </div>
                <!-- /. ROW  -->



            </div>

            <!-- /. PAGE INNER  -->
        </div>
        <script>
            function loadtable() {
                $("#ContentPlaceHolder1_mybookdata tr:first").wrap("<thead></thead>");
                $("#ContentPlaceHolder1_mybookdata thead").insertBefore("#GriView1 tbody");
                $("#ContentPlaceHolder1_mybookdata").dataTable();
            };
        </script>
</asp:Content>

